package com.zero.lite.dao.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_coupon")
public class Coupon extends Model<Coupon> {

    private static final long serialVersionUID = 1L;

	private Integer id;
	private String name;
	@TableField("type_money")
	private BigDecimal typeMoney;
	@TableField("send_type")
	private Integer sendType;
	@TableField("min_amount")
	private BigDecimal minAmount;
	@TableField("max_amount")
	private BigDecimal maxAmount;
	@TableField("min_goods_amount")
	private BigDecimal minGoodsAmount;
	@TableField("send_start")
	private LocalDateTime sendStart;
	@TableField("send_end")
	private LocalDateTime sendEnd;
	@TableField("use_start")
	private LocalDateTime useStart;
	@TableField("use_end")
	private LocalDateTime useEnd;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getTypeMoney() {
		return typeMoney;
	}

	public void setTypeMoney(BigDecimal typeMoney) {
		this.typeMoney = typeMoney;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public BigDecimal getMinAmount() {
		return minAmount;
	}

	public void setMinAmount(BigDecimal minAmount) {
		this.minAmount = minAmount;
	}

	public BigDecimal getMaxAmount() {
		return maxAmount;
	}

	public void setMaxAmount(BigDecimal maxAmount) {
		this.maxAmount = maxAmount;
	}

	public BigDecimal getMinGoodsAmount() {
		return minGoodsAmount;
	}

	public void setMinGoodsAmount(BigDecimal minGoodsAmount) {
		this.minGoodsAmount = minGoodsAmount;
	}

	public LocalDateTime getSendStart() {
		return sendStart;
	}

	public void setSendStart(LocalDateTime sendStart) {
		this.sendStart = sendStart;
	}

	public LocalDateTime getSendEnd() {
		return sendEnd;
	}

	public void setSendEnd(LocalDateTime sendEnd) {
		this.sendEnd = sendEnd;
	}

	public LocalDateTime getUseStart() {
		return useStart;
	}

	public void setUseStart(LocalDateTime useStart) {
		this.useStart = useStart;
	}

	public LocalDateTime getUseEnd() {
		return useEnd;
	}

	public void setUseEnd(LocalDateTime useEnd) {
		this.useEnd = useEnd;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Coupon{" +
			"id=" + id +
			", name=" + name +
			", typeMoney=" + typeMoney +
			", sendType=" + sendType +
			", minAmount=" + minAmount +
			", maxAmount=" + maxAmount +
			", minGoodsAmount=" + minGoodsAmount +
			", sendStart=" + sendStart +
			", sendEnd=" + sendEnd +
			", useStart=" + useStart +
			", useEnd=" + useEnd +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
